<template>
	<view class="tipTxt" 
		  :style="'width:'+ width +'px; left:'+left + 'px; top:' + top + 'px; display:' + display+';'">
		<view class="txt">{{title}}</view>
	</view>
</template>

<script>
	export default {
		data(){
			return {
				title:"",
				left:0,
				top:0,
				display:'none', //visible
				width:'auto',
			}
		},
		methods:{
			showTip(data)
			{
				this.title = data.title;
				this.left = data.left;
				this.top = data.top;
				this.display = data.display;
				this.width = data.width;
			}
		},
	}
</script>

<style lang="scss">
	
</style>
